package org.ww.provider.controller;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;
import org.ww.provider.service.UserService;

/**
 * <p>
 *  服务提供者
 * </p>
 *
 * @author ww
 * @since 2020-11-09
 */
@RestController
@RequestMapping("/provider/user")
public class UserController {

    @Autowired
    private UserService userService;

    /**
     * 删除用户
     * @param id
     * @return
     */
    @DeleteMapping("{id}")
    public boolean removeUser(@PathVariable Integer id){
        return userService.removeById(id);
    }
}

